﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace Ingenta.IRepository
{
    /// <summary>
    /// Describe：仓储接口
    /// </summary>
    /// <typeparam name="TEntity">实体模型</typeparam>
    public interface IBaseRepository<TEntity> where TEntity : class
    {
        List<TEntity> QueryWhere(Expression<Func<TEntity, bool>> predicate);

        void Add(TEntity model);

        int SaveChanges();
    }
}

